import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  plugins: [vue()],
  css: {
    // 全局样式
    preprocessorOptions: {
      scss: {
        additionalData: '@import "./src/assets/common.scss";'
      }
    }
  },
  resolve: {
    alias: {
      '@': '/src/'
    }
  },
  // 服务
  server: {
    open: false,
    port: 8080,
    cors: true
  },
  base: './',
  build: {
    outDir: 'dist'
  }
})
